package com.biz.primus.model.misc.exception;

import com.biz.primus.model.misc.enums.ApiExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author yanweijin
 * @date 2017/5/30
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ApiException extends RuntimeException {

    private static final long serialVersionUID = -4853832108237154780L;
    private ApiExceptionType type;


    public ApiException(String message, ApiExceptionType type) {
        super(message);
        this.type = type;
    }


}
